package utils;

import com.google.gdata.client.GoogleService;
import com.google.gdata.util.AuthenticationException;

public class ChequeaGmail {
	public static boolean validarPassw(String userName, String password) {
		boolean res;
			GoogleService myService = new GoogleService("cl", "exampleCo-exampleApp-1");
			try {
				myService.setUserCredentials(userName, password);
				res = true;
			} catch (AuthenticationException e) {
				e.printStackTrace();
				System.out.println("ERROR en validarPassw: " + e.toString());
				res = false;
			}
		return res;
	}
}
